package jiyun.com.yiyanmeng.http;


import java.util.List;


import bean.BooksDatilBean;
import bean.CodeBean;
import bean.GuangGaoBean;
import bean.KechengBannerBean;
import bean.InfoSchoolBean;
import bean.InfoSchoolBean2;
import bean.InfoSchoolBean3;
import bean.LoginBean;
import bean.LunTanJiYanBean;
import bean.LunTanOffRecyBean;
import bean.LunTanSchoolNewsBean;
import bean.LunTanSchoolTabBean;

import bean.AllBean;
import bean.BooksBean;
import bean.Loginby_phonecodeBean;

import bean.PenBean;
import bean.PinLunBean;
import bean.RegBean;
import bean.ResultBean;
import bean.SchoolPostCommentListResultBean;
import bean.VideoBean;
import bean.VideoDataBean;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;

import retrofit2.http.Part;
import retrofit2.http.Path;
import retrofit2.http.Query;


/**
 * Created by Windows on 2019/11/4.
 */

public interface MySerivce {
    String base_URL="https://app.yiyanmeng.com/index.php/";
    //登录
    @FormUrlEncoded
    @POST("login/login")
    Observable<ResultBean<LoginBean>> login(@Field("name") String name,@Field("pass") String pass);
    //广告
    @POST("index/get_advering_info")
    Observable<ResultBean<GuangGaoBean>> guangGao();
    //获取验证码
    @FormUrlEncoded
    @POST("Paywx/massage")
    Observable<ResultBean<CodeBean>> yanzhengma(@Field("phnoe") String phone,@Field("type") String type);
    //注册
    @FormUrlEncoded
    @POST("login/login_zhuce")
    Observable<ResultBean<RegBean>> reg(@Field("phnoe") String phone, @Field("pass") String password,@Field("code") String code,@Field("type") String type);

    //论坛 学校  tab栏分类数据
    @GET("forumsc/type_select")
    Observable<LunTanSchoolTabBean> sctabbean();
    //学校 历年复试真题
    @FormUrlEncoded
    @POST("forumsc/article_select")
    Observable<ResultBean<List<LunTanSchoolNewsBean>>> newsbean(@Field("id") int id, @Field("p") int page);
    //论坛 论坛  官方论坛数据
    @GET("forum/official_index")
    Observable<LunTanOffRecyBean> offbean();
    //论坛 论坛  经验论坛数据
    @FormUrlEncoded
    @POST("forumjy/forum_jy_index")
    Observable<LunTanJiYanBean> janyanbean(@Field("name") String name,@Field("p") int page);
    //论坛  官方论坛  详情数据(前三个)
    //https://app.yiyanmeng.com/index.php/forum/forum_index
    //论坛 学校历年试题,评论
    //https://app.yiyanmeng.com/index.php/forumsc/add_ping
    @FormUrlEncoded
    @POST("forumsc/add_ping")
    Observable<PinLunBean> pinbean(@Field("ti_id") String id,@Field("info") String info);
    //forumsc/ti_pinglun--评论成功后,
    @FormUrlEncoded
    @POST("forumsc/ti_pinglun")
    Observable<SchoolPostCommentListResultBean> pinbean2(@Field("ti_id") String id, @Field("p") String page);
    //forumsc/p_d_zan
    @FormUrlEncoded
    @POST("forumsc/p_d_zan")
    Observable<SchoolPostCommentListResultBean> pinbean3(@Field("p_id") String id);
    //forum/p_d_zan
    @FormUrlEncoded
    @POST("forum/p_d_zan")
    Observable<SchoolPostCommentListResultBean> pinbean4(@Field("p_id") String id);
    //forumjy/p_d_zan
    @FormUrlEncoded
    @POST("forumjy/p_d_zan")
    Observable<SchoolPostCommentListResultBean> pinbean5(@Field("p_id") String id);
    //https://app.yiyanmeng.com/index.php/add_ping
    @FormUrlEncoded
    @POST()
    Observable<SchoolPostCommentListResultBean> pinbean6(@Field("p_id") String id, @Field("info") String info);
    //https://app.yiyanmeng.com/index.php/replyPath
    @FormUrlEncoded
    @POST()
    Observable<SchoolPostCommentListResultBean> pinbean7(@Field("p_id") String id, @Field("info") String info);
    //forumjy/article_add
    @FormUrlEncoded
    @POST("forumjy/article_add")
    Observable<PenBean> penbean(@Field("title") String title, @Field("content") String content);


    //手机号验证码登录
    @FormUrlEncoded
    @POST("login/login")
    Observable<ResultBean<Loginby_phonecodeBean>> loginby_phonecode(@Field("type") String type, @Field("phnoe") String phnoe,@Field("code") String code);

    //找回密码  login/edit_phnoe
    @FormUrlEncoded
    @POST("login/edit_phnoe")
    Observable<ResponseBody> findpass(@Field("phnoe") String phnoe, @Field("y_pass") String y_pass, @Field("c_pass") String c_pass, @Field("code") String code);

    //图书
    //https://app.yiyanmeng.com/index.php/
    @GET("shop/get_shop_list")
    Observable<ResultBean<List<BooksBean>>>getBook();

    //https://app.yiyanmeng.com/index.php/kecheng/ke_index_list
    @GET("kecheng/ke_index_list")
    Observable<ResultBean<VideoBean>>getVideo();

    //https://app.yiyanmeng.com/index.php/ 
    @POST("shop/get_shop_and_vedio_list")
    Observable<AllBean> getAll();

    //user/yu_bao_list
    //填写信息----学校信息
    @POST("user/yu_bao_list")
    Observable<ResultBean<List<InfoSchoolBean>>> editinfo_school();

    //user/yu_bao_z_list
    //填写信息----学校信息
    @FormUrlEncoded
    @POST("user/yu_bao_z_list")
    Observable<ResultBean<InfoSchoolBean2>> editinfo_school2(@Field("id") String id);

    //user/yu_bao_z_list
    //填写信息----学校信息
    @FormUrlEncoded
    @POST("user/yu_bao_z_list")
    Observable<ResponseBody> editinfo_school3(@Field("id") String id, @Field("z_id") String id2);

    //user/add_yu_bao_ming
    //填写信息----提交信息
    @FormUrlEncoded
    @POST("user/add_yu_bao_ming")
    Observable<ResponseBody> editinfo_submit(@Field("s_id") String id1, @Field("y_id") String id2, @Field("z_id") String id3, @Field("time") String time);

    //user/get_exam_list
    //填写信息----学校信息
    @POST("user/get_exam_list")
    Observable<ResultBean<List<String>>> editinfo_time();

    @FormUrlEncoded
    @POST("shop/get_shop_and_vedio_list")
    Observable<ResultBean<AllBean>> getAll(@Field("start") int start, @Field("end") int end);

    //商品详情
    @POST("Shop/shop_xiang_qing")
    @FormUrlEncoded
    Observable<ResultBean<BooksDatilBean>> getBooksDatil(@Field("id") int id);


    //课程
    @POST("kecheng/ke_index_list")
    @FormUrlEncoded
    Observable<KechengBannerBean> kechengbanner(@Field("type") String type);

    //https://app.yiyanmeng.com/index.php/index/get_advering_info
    //课程详情
    @POST("Kecheng/ke_zi_list")
    @FormUrlEncoded
    Observable<ResultBean<VideoDataBean>> getVideoData(@Field("id") int id);



}
